package org.ftz;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
public class ClientrMain extends JFrame {
    public ClientrMain(){
        JFrame jFrame = new JFrame();
        jFrame.setTitle("程序设计远程协助系统");
        jFrame.setSize(1000,700);
        jFrame.setLocationRelativeTo(null);
        jFrame.setResizable(false);
        jFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        Container contentPane = jFrame.getContentPane();
        JPanel jPanel=new JPanel(null);
        JLabel jLabel=new JLabel("程序设计远程协助系统");
        jLabel.setBounds(170,170,700,50);
        jLabel.setFont(new Font("楷体",Font.BOLD,60));
        JLabel jLabel1=new JLabel("学生端");
        jLabel1.setBounds(660,240,200,40);
        jLabel1.setFont(new Font("楷体",Font.BOLD,40));
        JButton jButton=new JButton("点击进入");
        jButton.setFont(new Font("微软雅黑",Font.BOLD,18));
        jButton.setBounds(400,330,120,40);
        ImageIcon imageIcon = new ImageIcon("src\\main\\java\\org\\ftz\\images\\登录,进入,进.png");
        imageIcon.setImage(imageIcon.getImage().getScaledInstance(16,16,Image.SCALE_DEFAULT));
        jButton.setIcon(imageIcon);
        jButton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                jFrame.dispose();
                try {
                    new client();
                } catch (IOException ioException) {
                    ioException.printStackTrace();
                }
            }
        });
        jPanel.add(jButton);
        jPanel.add(jLabel);
        jPanel.add(jLabel1);
        contentPane.add(jPanel);
        jFrame.setVisible(true);
    }
    public static void main(String[] args) {
        try {
            org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper.launchBeautyEyeLNF();
            UIManager.put("RootPane.setupButtonVisible",false);
            UIManager.put("TabbedPane.tabAreaInsets",new javax.swing.plaf.InsetsUIResource(0,0,2,20));
        }catch (Exception e){
            System.out.println("加载炫彩皮肤失败！");
        }
        new ClientrMain();
    }
}
